import Vue from 'vue'
import App from './App.vue'
import router from './router'
import VueCookies from 'vue-cookies'
import store from './store'
import './assets/icon/iconfont.css'
import loading from './plugins/Loading'
import {
  Tabbar, TabbarItem, Icon, Swipe, SwipeItem, Grid, GridItem, PullRefresh, List, Sidebar, SidebarItem
  , Card, TreeSelect, Search, Tab, Tabs, NavBar, GoodsAction, GoodsActionIcon, GoodsActionButton, Popup, Stepper, Button
  , Field, Form, Circle, Image as VanImage, SwipeCell, Checkbox, CheckboxGroup, SubmitBar, Toast, ContactCard, ContactList, AddressEdit,
  Empty
} from 'vant'
import axios from 'axios'

Vue.use(Empty)
Vue.use(loading)
Vue.use(Tabbar)
Vue.use(TabbarItem)
Vue.use(Icon)
Vue.use(Swipe)
Vue.use(SwipeItem)
Vue.use(Grid)
Vue.use(GridItem)
Vue.use(PullRefresh)
Vue.use(List)
Vue.use(Sidebar)
Vue.use(SidebarItem)
Vue.use(Card)
Vue.use(TreeSelect)
Vue.use(Search)
Vue.use(Tab)
Vue.use(Tabs)
Vue.use(NavBar)
Vue.use(GoodsAction)
Vue.use(GoodsActionButton)
Vue.use(GoodsActionIcon)
Vue.use(Popup)
Vue.use(Stepper)
Vue.use(Button)
Vue.use(Field)
Vue.use(Form)
Vue.use(Circle)
Vue.use(VanImage)
Vue.use(VueCookies)
Vue.use(SwipeCell)
Vue.use(Checkbox)
Vue.use(SubmitBar)
Vue.use(Toast)
Vue.use(CheckboxGroup)
Vue.use(ContactCard)
Vue.use(ContactList)
Vue.use(AddressEdit)
Vue.prototype.$http = axios
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
